package com.hospital.hospitalrelay.web;


import com.hospital.hospitalrelay.entity.Indents;
import com.hospital.hospitalrelay.service.IIndentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 订单表 前端控制器
 * </p>
 *
 * @author 闫腾腾
 * @since 2020-10-21
 */
@RestController
@RequestMapping("/indents")
public class IndentsController {

    @Autowired
    private IIndentsService iIndentsService;

    //订单列表
    @RequestMapping("indentslist")
    public List<Indents> indentslist(){
        return iIndentsService.list();
    }

}
